#ifndef CHECKBOXITEMDELEGATE_H
#define CHECKBOXITEMDELEGATE_H

#include <QStyledItemDelegate>

class CheckBoxItemDelegate : public QStyledItemDelegate
{
public:
    explicit CheckBoxItemDelegate(QObject* parent = nullptr) : QStyledItemDelegate(parent) { }

    void paint(QPainter* painter, const QStyleOptionViewItem& option,
               const QModelIndex& index) const override;

    bool editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option,
                     const QModelIndex& index) override;
};

#endif // CHECKBOXITEMDELEGATE_H
